//
//  MyTableView.m
//  ALearningWalk
//
//  Created by wudongyang on 16/6/30.
//  Copyright © 2016年 战斗民族. All rights reserved.
//

#import "MyTableView.h"

@implementation MyTableView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)layoutSubviews {
    [super layoutSubviews];
    // 通过key找到右边的View
    UIView *view = [self valueForKeyPath:@"_index"];
//    view.backgroundColor = [UIColor whiteColor];
    // 改变大小
    view.frame = CGRectMake(view.frame.origin.x, 100, view.frame.size.width, view.frame.size.height - 100);
    // 改变layer层透明度
    view.layer.opacity = 0.5;
    [self setValue:view forKeyPath:@"_index"];
}

@end
